package Bank;

/**
 * @Author czl
 * @Date 2024-03-21
 */
public class Withdraw  extends Thread{

    private Account account;

    private String name;

    private double money;

    public Withdraw(){

    }

    public Withdraw(Account account , String name , double money){
        this.account=account;
        this.money=money;
        this.name=name;
    }

    @Override
    public void run() {
        account.getMoney(name,money);
    }
}
